package demo.isolib.movement {
	import demo.isolib.Tile;
	import com.sshc625.log.Logger;

	/**
	 */
	public class BasicMove extends TileMovement {
		private var _walkable:Boolean;

		public function BasicMove(spd:uint = 100) {
			super(spd);
		}

		override public function execute(params:Array = null):void {
			Logger.log("BasicMove.execute(" + params + ")");
			super.execute(params);
			updateAstarGrid(true);

			var x:Number = params[0] * tile.grid.cellSize;
			var y:Number = params[1] * tile.grid.cellSize;
			var z:Number = params[2];

			tile.x = x;
			tile.y = y;
			tile.z = z;

			updateAstarGrid(tile.walkable);
		}

	}

}